home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
bbsutils
/
tb502man.arj
/
P91
< prev
next >
Wrap
Text File
|
1994-02-13
|
2KB
|
58 lines
The TriBBS Bulletin Board System 91
EXTENDABLE MENU COMMANDS
------------------------
TriBBS allows the sysop to easily extend the Main Menu, the Message
Menu, the File Menu, and the Sysop Menu through the use of doors and
batch files. The first step in extending a menu is to add the new
command's hotkey character, description, and security level to the
desired menu. For example, let's suppose you wanted to add TriMail to
your Message Menu. The following is a sample Message Menu with
TriMail added to it:
----------------------------------------------------------------------
7,0,2,15
C,C,Change Conference,10
E,E,Enter a Message,10
R,R,Read Messages,10
N,N,New Messages,10
Y,Y,Your Messages,10
S,S,Text Search Messages,10
Q,Q,Set Conference Queue,10
T,T,TriMail,10
M,M,Main Menu,0
X,X,Expert Mode,10
P,P,Page Sysop,0
G,G,Goodbye,0
----------------------------------------------------------------------
As the above sample Message Menu shows, the new command's hardcoded
and configurable hotkey is "T", its description is "TriMail", and its
security level is "10". You should note that a custom menu option's
hardcoded hotkey can be any key expect one of the hardcoded hotkeys
that TriBBS uses internally for the menu. The configurable hotkey can
be any key that isn't being used by another command.
The next step to get the custom menu command functioning is to create
a batch file that TriBBS will call to carry out the command. The
filename must be MAINh.BAT (where "h" is the hardcoded hotkey) for a
custom Main Menu command, MESSh.BAT (where "h" is the hardcoded
hotkey) for a custom Message Menu command, FILEh.BAT (where "h" is the
hardcoded hotkey) for a custom File Menu command, or SYSh.BAT (where
"h" is the hardcoded hotkey) for a custom Sysop Menu command. So for
our example TriMail Message Menu command, the proper batch file name
would be MESST.BAT and could be a batch file similar to the following: